package com.fmy.security.commons.unusual;

import com.fmy.security.commons.enums.RespEnum;

/**
 * @author Mr.fmy
 * @version 1.0.0
 * @ClassName TokenException.java
 * @Description TODO token 异常
 * @createTime 2019年07月06日 13:34:00
 */
public class TokenException extends RuntimeException {
    private RespEnum iEnum;

    public TokenException(RespEnum iEnum) {
        super(iEnum.getDesc());
        this.iEnum = iEnum;
    }

    public RespEnum getiEnum() {
        return iEnum;
    }
}
